package com.qianji.api;

import com.qianji.pojo.ConsequenceDto;
import com.qianji.utils.Result;
import com.qianji.vo.ConsequenceAddVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 钟丽诗
 * @Date 2021.3.15
 */
@FeignClient(value = "qianji",url = "http://192.168.1.32:8888")
public interface ConsequenceApps {

    @ApiOperation("添加抽奖结果")
    @PutMapping("consequence/add")
    @ResponseBody
    Result addConsequence(@RequestBody ConsequenceAddVO consequenceAddVO);

    @ApiOperation("删除抽奖结果")
    @DeleteMapping("consequence/delete")
    @ResponseBody
    Result deleteCon(@RequestBody String id);

    @ApiOperation("查询抽奖结果")
    @PostMapping("consequence/select")
    @ResponseBody
    Result selectConsequence(@RequestBody ConsequenceDto consequenceDto);

}
